package com.yuanda.wordhot.entity;

import java.util.Set;

/**
 * 
 * @author YuBai
 * @since 2013-3-22
 * @Description 权限-角色
 * @version 1.0
 */

public class RoleEntity implements IEntity{

	/**
	 * 
	 */
	private static final long serialVersionUID = 4198033835375755123L;

	private int roleId;//角色ID

	private String roleName;//角色名称
	
	private String roleDesc;//角色描述
	
	private Set<String> permissions;//角色权限   一对多
	

//	public Set<String> getPermissionsStr() {
//		Set<String> permissionsStr = new HashSet<String>();
//		for (RolePermissionsEntity en : permissions) {
//			permissionsStr.add(en.getPermissions());
//		}
//		return permissionsStr;
//	}

	public int getRoleId() {
		return roleId;
	}

	public void setRoleId(int roleId) {
		this.roleId = roleId;
	}

	public String getRoleName() {
		return roleName;
	}

	public void setRoleName(String roleName) {
		this.roleName = roleName;
	}

	public String getRoleDesc() {
		return roleDesc;
	}

	public void setRoleDesc(String roleDesc) {
		this.roleDesc = roleDesc;
	}

	public Set<String> getPermissions() {
		return permissions;
	}

	public void setPermissions(Set<String> permissions) {
		this.permissions = permissions;
	}
	
	

}
